var img_obj=$('#spec-list img');
if(img_obj.length==0){alert('没有找到图片数据');}else{

var html='<img_box style="background:rgba(0,0,0,0.5);width:100%;height:100vh;left:0;top:0;z-index:1000000;position:fixed;">';
img_obj.each(function(){
var img=$(this).attr('src').replace('jfs','s800x800_jfs').replace('.avif','');
html+='<img_item style="float:left;width:200px;height:200px;background:url('+img+') no-repeat center;background-size:cover;margin:5px;position:relative;">';
html+='<a href="'+img+'" target="_blank" style="position:absolute;width:60px;text-align:center;color:#000;bottom:10px;left:10px;height:28px;line-height:28px;background:#09c;">打开</a>';
html+='<view url="'+img+'" onclick="get_this_img($(this))" style="position:absolute;width:100px;bottom:10px;right:10px;height:28px;line-height:28px;background:#00c8dc;color:#fff;font-size:12px;text-align:center;border-radius:5px">获取图片</view>';
html+='</img_item>';
})

var img_obj=$('#J-detail-content img');
if(img_obj.length>0){
img_obj.each(function(){
var img=$(this).attr('src').replace('jfs','s800x800_jfs').replace('.avif','');
html+='<img_item style="float:left;width:200px;height:200px;background:url('+img+') no-repeat center;background-size:cover;margin:5px;position:relative;">';
html+='<a href="'+img+'" target="_blank" style="position:absolute;width:60px;text-align:center;color:#000;bottom:10px;left:10px;height:28px;line-height:28px;background:#09c;">打开</a>';

html+='<view url="'+img+'" onclick="get_this_img($(this))" style="position:absolute;width:100px;bottom:10px;right:10px;height:28px;line-height:28px;background:#00c8dc;color:#fff;font-size:12px;text-align:center;border-radius:5px">获取图片</view>';
html+='</img_item>';
})
}

var img_obj=$('#J-detail-content .ssd-module');
if(img_obj.length>0){
img_obj.each(function(){
var img=$(this).css('backgroundImage');
//alert(img)

var img=$(this).css('backgroundImage').replace('jfs','s800x800_jfs').replace('url("','').replace('")','').replace('.avif','');
html+='<img_item style="float:left;width:200px;height:200px;background:url('+img+') no-repeat center;background-size:cover;margin:5px;position:relative;">';
html+='<a href="'+img+'" target="_blank" style="position:absolute;width:60px;text-align:center;color:#000;bottom:10px;left:10px;height:28px;line-height:28px;background:#09c;">打开</a>';

html+='<view url="'+img+'" onclick="get_this_img($(this))" style="position:absolute;width:100px;bottom:10px;right:10px;height:28px;line-height:28px;background:#00c8dc;color:#fff;font-size:12px;text-align:center;border-radius:5px">获取图片</view>';
html+='</img_item>';
})
}



html+='<close_bt style="position:fixed;bottom:30px;right:30px;color:crimson;font-size:30px" onclick="$(\'img_box\').remove()">关闭</close_bt>';
html+='<warn style="position:fixed;width:100%;bottom:10px;left:0;color:#fff;font-size:18px;font-weight:bold;">请勿下载切割图和含包装，商标LOGO的图片,下载大图，请下拉加载后点击。</warn>';
html+='</img_box>';
$('img_box').remove();


$('body').append(html);
}

function get_this_img(o){
var img=o.attr('url');
window.open('https://www.zjhn.top/tuan/img_url_get.php?url='+encodeURIComponent(img),'',width=400,height=400);
}